﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HMS_TabletClient
{
    public partial class tableselected : Form
    {
        public tableselected()
        {
            InitializeComponent();
        }

        private void tableselected_Load(object sender, EventArgs e)
        {

        }

        private void button13_Click(object sender, EventArgs e)
        {
            Table1 t1 = new Table1();
            t1.Show();
            this.Hide();
            t1.FormClosed += new FormClosedEventHandler(t1_FormClosed);
        }

        void t1_FormClosed(object sender, FormClosedEventArgs e)
        {
            //throw new NotImplementedException();
            this.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Table2 t2 = new Table2();
            t2.Show();
            this.Hide();
            t2.Show();
            t2.FormClosed += new FormClosedEventHandler(t2_FormClosed);
        }

        void t2_FormClosed(object sender, FormClosedEventArgs e)
        {
            //throw new NotImplementedException();
            this.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Table3 t3 = new Table3();
            t3.Show();
            this.Hide();
            t3.FormClosed += new FormClosedEventHandler(t3_FormClosed);
        }

        void t3_FormClosed(object sender, FormClosedEventArgs e)
        {
                //throw new NotImplementedException();
            this.Show();
        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {
            this.Close();
        }



    }
}
